package com.scau.service.impl.business;

import java.io.Serializable;

import org.springframework.stereotype.Component;

import com.scau.exception.BusinessException;
import com.scau.model.business.Shoe;
import com.scau.service.BaseService;

@Component
public class ShoeService extends BaseService<Shoe> implements Serializable{
	public void save(Shoe s) throws BusinessException{
		if (null != s && null != s.getStyle_id()) {
			if(null != s.getId()&& 0 != s.getId()){
				update(s);
			}else{
				add(s);
			}
		}else {
			throw new BusinessException("款号不能为空");
		}
	}

}
